#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

//size_t my_strlen(char* s)
//{
//	size_t count = 0;
//	while (*s != '\0')
//	{
//		s++;
//		count++;
//	}
//	return count;
//}

size_t my_strlen(char* s)
{
	size_t start = s;
	while (*s != '\0')
		s++;
	return s - start;
}

int main()
{
	char arr[] = "aggjmm";
	printf("%zd\n", my_strlen(arr));
	return 0;
}
